<html>
    <head>
    <title>Football Betting Advice</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css"
            href="<?php echo base_url();?>resources/css/style.css" />
            <script type="text/javascript">
                  var _gaq = _gaq || [];
                  _gaq.push(['_setAccount', 'UA-34655323-1']);
                  _gaq.push(['_trackPageview']);

                  (function() {
                    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
                  })();
            </script>
    </head>
    <body>
        <div class="header clearfix">
            <div class="wrapper">
                <a class="logo" href="<?php echo base_url();?>"></a>
                <h1>Football Betting Advice</h1>
            </div>
            <div class="top-menu">
                <div class="wrapper">
                    <ul>
                        <li><a href="about">About</a></li>
                        <li><a href="<?php echo base_url();?>" class="active-link">Home</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="wrapper clearfix">
            <div class="main-container">
                <div class="prediction-list">
                    <h2><label>Top outcome predictions</label></h2>
                    <div class="block dark">
                        <div class="table-text" style="width: 20%">League</div>
                        <div class="table-text" style="width: 28%; text-align: right;">HOME</div>
                        <div class="table-text" style="width: 4%">-</div>
                        <div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
                        <div class="table-text" style="width: 20%">Prediction</div>
                    </div>
                    <?php foreach ($recomended as $item):?>
                    <div class="block light">
                        <div class="table-text" style="width: 20%"><?php echo $item->getLeague()?></div>
                        <div class="table-text" style="width: 28%; text-align: right;"><?php echo $item->getHomeTeam()?></div>
                        <div class="table-text" style="width: 4%">-</div>
                        <div class="table-text" style="width: 28%; text-align: left;"><?php echo $item->getAwayTeam()?></div>
                        <div class="table-text" style="width: 20%"><?php echo $item->getTip()?></div>
                    </div>
                    <?php endforeach;?>
		</div>
                <div class="prediction-list">
                    <h2><label>Goals 3+</label></h2>
                    <div class="block dark">
                        <div class="table-text" style="width: 20%">League</div>
                        <div class="table-text" style="width: 28%; text-align: right;">HOME</div>
                        <div class="table-text" style="width: 4%">-</div>
                        <div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
                        <div class="table-text" style="width: 20%">Prediction</div>
                    </div>
                    <?php foreach ($recomendedOver as $item):?>
		    <div class="block light">
                        <div class="table-text" style="width: 20%"><?php echo $item->getLeague()?></div>
			<div class="table-text" style="width: 28%; text-align: right;"><?php echo $item->getHomeTeam();?></div>
			<div class="table-text" style="width: 4%">-</div>
			<div class="table-text" style="width: 28%; text-align: left;"><?php echo $item->getAwayTeam();?></div>
			<div class="table-text" style="width: 20%"><?php echo '3+';?></div>
                    </div>
                    <?php endforeach;?>
                </div>
                <div class="prediction-list">
                    <h2><label>Goals 0-2</label></h2>
                    <div class="block dark">
                        <div class="table-text" style="width: 20%">League</div>
                        <div class="table-text" style="width: 28%; text-align: right;">HOME</div>
			<div class="table-text" style="width: 4%">-</div>
			<div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
			<div class="table-text" style="width: 20%">Prediction</div>
                    </div>
                    <?php foreach ($recomendedUnder as $item):?>
		    <div class="block light">
                        <div class="table-text" style="width: 20%"><?php echo $item->getLeague()?></div>
                        <div class="table-text" style="width: 28%; text-align: right;"><?php echo $item->getHomeTeam();?></div>
			<div class="table-text" style="width: 4%">-</div>
			<div class="table-text" style="width: 28%; text-align: left;"><?php echo $item->getAwayTeam();?></div>
			<div class="table-text" style="width: 20%"><?php echo '0-2';?></div>
                    </div>
                    <?php endforeach;?>
		</div>
                <div class="prediction-list">
                    <h2><label>All predictions</label></h2>
                    <div class="block dark">
			<div class="table-text" style="width: 20%">League</div>
			<div class="table-text" style="width: 28%; text-align: right;">HOME</div>
			<div class="table-text" style="width: 4%">-</div>
			<div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
			<div class="table-text" style="width: 20%">Prediction</div>
                    </div>
                    <?php foreach ($games as $item):?>
		    <div class="block light">
                        <div class="table-text" style="width: 20%"><?php echo $item->getLeague()?></div>
                        <div class="table-text" style="width: 28%; text-align: right;"><?php echo $item->getHomeTeam();?></div>
			<div class="table-text" style="width: 4%">-</div>
			<div class="table-text" style="width: 28%; text-align: left;"><?php echo $item->getAwayTeam();?></div>
			<div class="table-text" style="width: 20%"><?php echo $item->getTip()?></div>
                    </div>
                    <?php endforeach;?>
                </div>
            </div>        
        </div>
        <div class="footer">
            &copy; football-betting-advice.com 2012 - All predictions calculated in {elapsed_time}s
        </div>
    </body>
</html>